﻿<!DOCTYPE html>
<html>
	<head>
		<title>Search and Replace Function</title>
		<meta charset="utf-8" />
		<meta name="description" content="The description of the document search and replace function in Document Editor" />
		<link type="text/css" rel="stylesheet" href="../../../../../../common/main/resources/help/editor.css" />
		<link type = "text/css" rel = "stylesheet" href = "../../images/sprite.css" />
        <script type="text/javascript" src="../callback.js"></script>
        <script type="text/javascript" src="../search/js/page-search.js"></script>
	</head>
	<body>
		<div class="mainpart">
        <div class="search-field">
            <input id="search" class="searchBar" placeholder="Search" type="text" onkeypress="doSearch(event)">
        </div>
		<h1>Search and Replace Function</h1>
			<p>To search for the needed characters, words or phrases used in the currently edited document, 
			click the <span class="icon icon-searchicon"></span> icon situated at the left sidebar or use the <em>Ctrl+F</em> key combination. </p>
			<p>The <b>Find and Replace</b> window will open:</p>
            <p><img alt="Find and Replace Window" src="../images/search_window.png" /></p>
			<ol>
			<li>Type in your inquiry into the corresponding data entry field.</li>
			<li>Specify search parameters by clicking the <div class = "icon icon-search_options"></div> icon and checking the necessary options:
			<ul>
			<li><b>Case sensitive</b> - is used to find only the occurrences typed in the same case as your inquiry (e.g. if your inquiry is 'Editor' and this option is selected, such words as 'editor' or 'EDITOR' etc. will not be found). To disable this option click it once again.</li>
			<li><b>Highlight results</b> - is used to highlight all found occurrences at once. To disable this option and remove the highlight click the option once again.</li>
			</ul>
			</li>			
			<li>Click one of the <b>arrow buttons</b> at the bottom right corner of the window. 
			The search will be performed either towards the beginning of the document (if you click the <div class = "icon icon-searchupbutton"></div> button) or towards the end of the document (if you click the <div class = "icon icon-searchdownbutton"></div> button) from the current position.
			<p class="note"><b>Note</b>: when the <b>Highlight results</b> option is enabled, use these buttons to navigate through the highlighted results.</p>
			</li>
			</ol>
			<p>The first occurrence of the required characters in the selected direction will be highlighted on the page. If it is not the word you are looking for, click the selected button again to find the next occurrence of the characters you entered.</p> 
			<p><b>To replace</b> one or more occurrences of the found characters click the <b>Replace</b> link below the data entry field or use the <em>Ctrl+H</em> key combination. The <b>Find and Replace</b> window will change:</p>
            <p><img alt="Find and Replace Window" src="../images/search_replace_window.png" /></p>
			<ol>
			<li>Type in the replacement text into the bottom data entry field.</li>			
			<li>Click the <b>Replace</b> button to replace the currently selected occurrence or the <b>Replace All</b> button to replace all the found occurrences.</li>
			</ol>
            <p>To hide the replace field, click the <b>Hide Replace</b> link.</p>
		</div>
	</body>
</html>